<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class PartsBatch extends Model
{

    protected $table = 'partsbatch';

    protected $guarded = [];

    public function belongsToManyStore(){
        return $this->belongsToMany('App\StoreHouse','PartsInventory','partsbatch_id','storehouse_id');
    }
    public function belongsToManyParts(){
        return $this->belongsToMany('App\Parts','PartsBatch','id','parts_id');
    }
}
